<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    request.setAttribute("contextPath", request.getContextPath());
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>订单详细</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
  </head>
  
<body>
<a href="javaScript:history.go(-1)">返回</a>
	<br/><br/>
<table align="center" border="2" width="90%" cellpadding="0" cellspacing="0">
	<tr><td>
		<span>订单号：${orderLine.orderId }
<c:choose>
	<c:when test="${orderLine.status eq 1 }">(等待付款)</c:when>
	<c:when test="${orderLine.status eq 2 }">(准备发货)</c:when>
	<c:when test="${orderLine.status eq 3 }">(等待确认)</c:when>
	<c:when test="${orderLine.status eq 4 }">(交易成功)</c:when>
</c:choose>	</td>
		　　<td>　下单时间：${orderLine.orderTime }</span></td>
           <td>收货人地址:${orderLine.address }</td></tr>
           
				<center><dt>商品清单</dt></center>
				
						<tr>
						<th class="tt" align="left">单价</th>
						<th class="tt" align="left">数量</th>
						<th class="tt" align="left">小计</th>
						</tr> 
						<tr style="padding-top: 20px; padding-bottom: 20px;">
							<td class="td" >
								<span>&yen;${orderLine.price }</span>
							</td>
							<td class="td">
								<span>${orderLine.bookIdQuantity }</span>
							</td>
							<td class="td">
								<span>&yen;${orderLine.subTotal }</span>
							</td>			
						</tr><br>
			
		</table><br>
		<span style="margin-left: 800px;margin-right: 100px;">合计金额：</span>
			<span class="price_t">&yen;${orderLine.subTotal }</span><br><br>
			<c:if test="${order.status eq 1 }">
	<a href="<c:url value='/orderController/payView/${orderLine.orderId }'/>" class="payView" style="margin-left: 1100px;margin-right: 80px;">立即付款</a><br>
<a href="<c:url value='/orderController/deleteOrder/${orderLine.orderId}'/>" class="delete" style="margin-left: 1100px;margin-right: 80px;">取消订单</a><br>
</c:if>	
<c:if test="${order.status eq 3 }">
<a href="<c:url value='/orderController/confirmView/${orderLine.orderId}'/>" class="confirm" style="margin-left: 1100px;margin-right: 80px;">确认收货</a><br/>
</c:if>	
</body>
</html>

